import {ref} from 'vue'

const db = uniCloud.database()

export const list=ref([])
export const selectItem=ref(null)


export let getList = async () => {
	let collection = await db.collection('uni-media-library')
		.get()
	console.log(collection, 'collection')
	if(collection.result&&collection.result.data){
		list.value=collection.result.data
	}else{
		list.value=[]
	}
}